package com.sise.thread.多线程发送邮件案例;

import java.util.concurrent.Callable;

/**
 * 作者：idea
 * 日期：2018/6/24
 * 描述：
 */
public class SendEmail implements Callable {


    public void send() throws InterruptedException {
        Thread.sleep(5000);
        System.out.println("发送邮件信息！！"+Thread.currentThread().getName());
    }


    @Override
    public Object call() throws Exception {
        send();
        return true;
    }
}
